
package com.carsite.dao;

import java.util.List;

import com.carsite.model.ModuleMenu;
import com.carsite.model.QueryMap;

public interface ModuleMenuDao extends Dao {

    /**
     * Retrieves all of the moduleMenus
     */
	
	public List getModuleMenusByParent(final String id);
    public List getModuleMenus(ModuleMenu moduleMenu);

    /**
     * Gets moduleMenu's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param menuId the moduleMenu's menuId
     * @return moduleMenu populated moduleMenu object
     */
    public ModuleMenu getModuleMenu(final Long menuId);

    /**
     * Saves a moduleMenu's information
     * @param moduleMenu the object to be saved
     */    
    public void saveModuleMenu(ModuleMenu moduleMenu);

    /**
     * Removes a moduleMenu from the database by menuId
     * @param menuId the moduleMenu's menuId
     */
    public void removeModuleMenu(final Long menuId);

	public List getModules();
	public List getMenus(QueryMap queryMap);
	
}

